package cn.starrysky108.simpleerp.finance.entity;

import cn.starrysky108.simpleerp.core.base.BaseEntity;
import cn.starrysky108.simpleerp.core.enums.OrderStatusEnum;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.math.BigDecimal;

/**
 * <p>
 * 应收款项
 * </p>
 *
 * @author Carl Lee
 * @since 2021-08-14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("finance_receivables")
@ApiModel(value = "FinanceReceivables对象", description = "应收款项 ")
public class FinanceReceivables extends BaseEntity {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "流水号")
    @TableField("serial_number")
    private String serialNumber;

    @ApiModelProperty(value = "金额")
    @TableField("amount")
    private BigDecimal amount;

    @ApiModelProperty(value = "备注")
    @TableField("note")
    private String note;


    @ApiModelProperty(value = "关联订单")
    @TableField("relation_id")
    private Long relationId;

    @ApiModelProperty(value = "订单状态")
    @TableField("status")
    private OrderStatusEnum status;

    @ApiModelProperty(value = "操作人id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "管理员/审核人id")
    @TableField("administrator_id")
    private Long administratorId;


}
